<!doctype html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport"
    content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
  <meta name="format-detection" content="telephone=no" />
  <!-- <meta name="format-detection" content="telephone=no,email=no,date=no,address=no"> -->
  <title><%= htmlWebpackPlugin.options.name %></title>
  <link rel="stylesheet" type="text/css" href="./static/css/style.css">
  <link rel="stylesheet" type="text/css" href="./static/css/muse-ui.css">
  <link rel="stylesheet" type="text/css" href="./static/css/muse-ui-loading.all.css">
  <link rel="stylesheet" type="text/css" href="./static/css/muse-ui-message.all.css">
  <link rel="stylesheet" type="text/css" href="./static/css/muse-ui-progress.all.css">
  <link rel="stylesheet" type="text/css" href="./static/css/material-icons/material-icons.css">
  <link rel="stylesheet" href="./static/css/treeAnimate.css">
  <!-- <link rel="stylesheet" href="http://demo.datouwang.com/uploads/demo/jiaoben/2017/jiaoben1089/css/index.min.css"> -->
</head>

<body>
  <div id="page">
    <vue>
      <!-- Vue here -->
    </vue>
  </div>
  <script type="text/javascript" src="./js/<%= htmlWebpackPlugin.options.vuejs %>"></script>
  <script type="text/javascript" src="./js/fastclick.min.js"></script>
  <script type="text/javascript" src="./static/js/apicloud.js"></script>
  <script src="./static/js/muse-ui.js"></script>
  <script src="./static/js/muse-ui-loading.js"></script>
  <script src="./static/js/muse-ui-progress.js"></script>
  <script src="./static/js/muse-ui-message.js"></script>
  <script src="./static/js/lib-flexible.js"></script>
</body>

</html>

<script type="text/javascript">
  var page

  // Apicloud initialize
  apiready = function () {
    Vue.prototype.$ac = api // Vue global apicloud API
    page = new Vue({
      el: '#page',
      components: { 'vue': <%= htmlWebpackPlugin.options.name %>Vue },
      mounted: function () {
        Origami.fastclick(document.body) // You must use fastclick on the mobile
      }
    })
  }

  // Browser initialize
  setTimeout(function () {
    if (page === undefined) {

      page = new Vue({
        el: '#page',
        components: { 'vue': <%= htmlWebpackPlugin.options.name %>Vue },
        mounted: function () {
          Origami.fastclick(document.body) // You must use fastclick on the mobile
        }
      })
    }
  }, 500)
</script>